<?php
/*
 * @Description: 账户（服务层）
 * @Author: franktrue 807615827@qq.com
 * @Date: 2021-07-13 10:38:59
 * @LastEditTime: 2021-07-13 12:56:03
 */
namespace App\Rpc\Lib;

/**
 * Class AccountUserInterface
 *
 * @since 2.0
 */
interface AccountUserInterface
{

    /**
     * 查看对象
     */
    public function get(int $id, array $columns = ['*']): array;

    /**
     * 创建账户
     */
    public function create(array $attributes): int;

    /**
     * 更新账户
     */
    public function update(int $id, array $attributes): bool;

    /**
     * 删除账户
     */
    public function delete(int $id): bool;
}